/* eslint-disable */
// @ts-ignore
import { queryOptions, useMutation } from '@tanstack/vue-query';
import type { DefaultError } from '@tanstack/vue-query';
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as apis from './weixinyonghushouye';
import * as API from './types';

/** 获取活动详情 GET /tourism/client/c/index/getactiviteinfo */
export function getActiviteInfoUsingGetQueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getActiviteInfoUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getActiviteInfoUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getActiviteInfoUsingGet', options],
  });
}

/** 获取配置 GET /tourism/client/c/index/getconfig */
export function getConfigUsingGetQueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getConfigUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getConfigUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getConfigUsingGet', options],
  });
}

/** 获取遗产 GET /tourism/client/c/index/getheritage */
export function pageUsingGet1QueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.pageUsingGET1Params;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.pageUsingGet1(queryKey[1] as typeof options);
    },
    queryKey: ['pageUsingGet1', options],
  });
}

/** 获取遗产详情 GET /tourism/client/c/index/getheritagedetail */
export function detailUsingGet2QueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.detailUsingGET2Params;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.detailUsingGet2(queryKey[1] as typeof options);
    },
    queryKey: ['detailUsingGet2', options],
  });
}

/** 获取用户最新计划 GET /tourism/client/c/index/getnewplan */
export function getNewPlanUsingGetQueryOptions(options: {
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getNewPlanUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getNewPlanUsingGet', options],
  });
}

/** 获取推荐 GET /tourism/client/c/index/getrecommend */
export function getRecommendUsingGetQueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getRecommendUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getRecommendUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getRecommendUsingGet', options],
  });
}

/** 获取景点热门 GET /tourism/client/c/index/getredspot */
export function getRedSpotUsingGetQueryOptions(options: {
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getRedSpotUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getRedSpotUsingGet', options],
  });
}

/** 获取攻略热门 GET /tourism/client/c/index/getredstrategy */
export function getRedStrategyUsingGetQueryOptions(options: {
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getRedStrategyUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getRedStrategyUsingGet', options],
  });
}

/** 获取景点活动 GET /tourism/client/c/index/getspotactivite */
export function getSpotActiviteUsingGetQueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getSpotActiviteUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getSpotActiviteUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getSpotActiviteUsingGet', options],
  });
}

/** 获取景点预约 GET /tourism/client/c/index/getspotbook */
export function spotBookUsingGetQueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.spotBookUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.spotBookUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['spotBookUsingGet', options],
  });
}

/** 获取用户计划 GET /tourism/client/c/index/getuserplan */
export function getUserPlanUsingGetQueryOptions(options: {
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.getUserPlanUsingGet(queryKey[1] as typeof options);
    },
    queryKey: ['getUserPlanUsingGet', options],
  });
}
